import { Component, Input } from '@angular/core';

@Component({
  selector: 'app-add-custimer-discount-rate',
  templateUrl: './add-custimer-discount-rate.component.html',
  styleUrls: ['./add-custimer-discount-rate.component.scss']
})
export class AddCustimerDiscountRateComponent {
  @Input() data: any
  form: any = {
    customerDiscountId: null,
    customerDiscountName: "",
    discount: 0
  }
  discount: any = 0
  constructor() { }
  ngOnInit(): void {

  }
  ngModelChange() {
    this.form.discount = this.discount/100
  }
}
